package com.cyclinggle.cloud.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class BetweenGatewayApplication {

	/*@Bean
	public RouteLocator customRouteLocator(RouteLocatorBuilder builder) {
		ZonedDateTime datetime1 = LocalDateTime.now().minusDays(1).atZone(ZoneId.systemDefault());
		ZonedDateTime datetime2 = LocalDateTime.now().plusDays(1).atZone(ZoneId.systemDefault());
		return builder.routes()
				.route("between_route", r -> r.between(datetime1,datetime2)
											  .uri("http://baidu.com"))
				.build();
	}*/
	public static void main(String[] args) {
		SpringApplication.run(BetweenGatewayApplication.class, args);
	}
}
